package com.lincoln.cloud.test.servercentertest;

import com.lincoln.cloud.servercenter.annotation.ServerCenter;
import com.lincoln.cloud.servercenter.bean.ServerCenterContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 测试注册中心
 *
 * @author lincoln
 */
@ServerCenter
@SpringBootApplication
public class ServerCenterTestApplication {

    public static void main(String[] args) {
        new Thread(() -> {
            try {
                ServerCenterContext.run(ServerCenterTestApplication.class);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }).start();
        SpringApplication.run(ServerCenterTestApplication.class, args);
    }
}

